home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / programs / internet / tcp / clients / napsaterm3.8b.lha / src.lha / src / national.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-14  |  1.1 KB  |  43 lines

  1. /* $Id: national.h,v 3.1 1994/02/25 02:33:38 ppessi Exp $
  2.  *
  3.  * national.h --- special national fonts and keymappings
  4.  *
  5.  * Author: ppessi <Pekka.Pessi@hut.fi>
  6.  *
  7.  * Copyright (c) 1993 Pekka Pessi
  8.  *
  9.  * Created      : Mon Mar 29 06:38:37 1993 ppessi
  10.  * Last modified: Fri Feb 25 02:09:58 1994 ppessi
  11.  *
  12.  */
  13.  
  14. #define MAX_NATIONS 31
  15. #define CHARSETSIZE 256
  16.  
  17. /* national_kmap provides mapping from 
  18.  * the ascii codes to the national character codes
  19.  */
  20. extern unsigned char national_table[CHARSETSIZE];
  21.  
  22. /* national_kmap provides mapping from 
  23.  * the keyboard codes to the national character codes
  24.  */
  25. extern unsigned char national_kmap[CHARSETSIZE];
  26.  
  27. struct nation {
  28.   char *n_name;
  29.   char *n_kmapname;    /* name of the kmap resource */
  30.   void *n_kmap;        /* pointer to the kmap resource */
  31.   char *n_patches;    /* mapping between Latin1 and national code */
  32. };
  33.  
  34. extern struct nation nations[MAX_NATIONS];
  35. extern struct nation *used_nation;
  36.  
  37. void initnation(unsigned int n);
  38. void initnation_byname(char *name); /* where is the C++? ;) */
  39. void initnations(void);
  40. void deinitnations(void);
  41.  
  42.  
  43.